<?php echo form_open('admin/auth/login', array('class' => 'form-horizontal form-login')); ?>
<?php echo form_fieldset('System Login'); ?>
<div class="control-group">
    <div class="controls">
        <?php echo isset($error) ? "<p>$error</p>" : '' ?>
        <?php echo form_error('username'); ?>
        <div class="input-prepend">
            <span class="add-on">
                <i class="icon-user"></i>
            </span>
            <?php echo form_input($form['username']) ?>
        </div>
    </div>
</div>
<div class="control-group">
    <div class="controls">
        <?php echo form_error('password'); ?>
        <div class="input-prepend">
            <span class="add-on">
                <i class="icon-lock"></i>
            </span>
            <?php echo form_password($form['password']) ?>
        </div>
    </div>
</div>
<?php echo form_fieldset_close(); ?>
<div class="form-actions">
    <?php echo form_submit($form['submit']) ?>
</div>      
<?php echo form_close() ?>